package com.graduation.sfstore.entity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Event {

    private String topic;
    private int userId;
    private int entityType;
    private Double entityId;
    private String entityUserId;
    private String fishname;
    private Double weight;
    private int toid;
    private Date date;
    private Map<String, Object> data = new HashMap<>();

    public String getTopic() {
        return topic;
    }

    public com.graduation.sfstore.entity.Event setTopic(String topic) {
        this.topic = topic;
        return this;
    }

    public int getUserId() {
        return userId;
    }

    public com.graduation.sfstore.entity.Event setUserId(int userId) {
        this.userId = userId;
        return this;
    }

    public int getEntityType() {
        return entityType;
    }

    public com.graduation.sfstore.entity.Event setEntityType(int entityType) {
        this.entityType = entityType;
        return this;
    }

    public Double getEntityId() {
        return entityId;
    }

    public com.graduation.sfstore.entity.Event setEntityId(Double entityId) {
        this.entityId = entityId;
        return this;
    }

    public String getEntityUserId() {
        return entityUserId;
    }

    public com.graduation.sfstore.entity.Event setEntityUserId(String entityUserId) {
        this.entityUserId = entityUserId;
        return this;
    }

    public String getFishname() {
        return fishname;
    }

    public com.graduation.sfstore.entity.Event setFishname(String fishname) {
        this.fishname = fishname;
        return this;
    }

    public Double getWeight() {
        return weight;
    }

    public com.graduation.sfstore.entity.Event setWeight(Double weight) {
        this.weight = weight;
        return this;
    }

    public int getToid() {
        return toid;
    }

    public com.graduation.sfstore.entity.Event setToid(int toid) {
        this.toid = toid;
        return this;
    }

    public Date getDate() {
        return date;
    }

    public com.graduation.sfstore.entity.Event setDate(Date date) {
        this.date = date;
        return this;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public com.graduation.sfstore.entity.Event setData(String key, Object value) {
        this.data.put(key, value);
        return this;
    }
}
